// 该文件负责所有的公共的组件的全局注册  Vue.use
import PageTools from "./PageTools";
import UploadExcel from "./UploadExcel";
import ImageUpload from "./ImageUpload";
// import Print from "vue-print-nb";
import ScreenFull from "./ScreenFull";
import ThemePicker from "./ThemePicker";
import LangSelect from "./lang";
import TagsView from "./TagsView";

export default {
  install(Vue) {
    //  注册全局的通用栏组件对象
    //  第一个 PageTools 是导入的组件的名称  第二个是对象
    Vue.component("PageTools", PageTools); // 注册工具栏组件
    Vue.component("UploadExcel", UploadExcel); // 注册导入 excel 组件
    Vue.component("ImageUpload", ImageUpload);
    // Vue.use(Print);
    Vue.component("ScreenFull", ScreenFull); // 注册全屏组件
    Vue.component("ThemePicker", ThemePicker);
    Vue.component("LangSelect", LangSelect); // 注册多语言包
    Vue.component("TagsView", TagsView);
  }
};
